-- GENERATED SPELL FOR [Sea Spray] --


function spell0_5462(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(11538,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5462', 7000, 1)
end

function spell1_5462(pUnit, Event) --@Geyser,Self--
pUnit:FullCastSpellOnTarget(10987,pUnit)
pUnit:RegisterEvent('Sorts_5462', 5273, 1)
end

function Sorts_5462(pUnit, Event)
local choix_sorts_5462 = math.random(0, 1)
if choix_sorts_5462 == 0 then
pUnit:RegisterEvent('spell0_5462', 1, 1)
end
if choix_sorts_5462 == 1 then
pUnit:RegisterEvent('spell1_5462', 1, 1)
end
end

function mob5462_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5462', math.random(1500, 3000), 1)
end

function mob5462_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5462_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5462_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5462, 1, 'mob5462_Action')
RegisterUnitEvent(5462, 2, 'mob5462_Leave')
RegisterUnitEvent(5462, 3, 'mob5462_Kill')
RegisterUnitEvent(5462, 4, 'mob5462_Die')
